<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>添加事件</title>
	<style type="text/css">
		body{
			background-color:#F3F1EC;
		}
	</style>
</head>
<body>
	<%@ include file="include/base.jsp" %>
	<%@ include file="include/base-after.jsp" %>
	<div class="container-fluid" style="margin-top:70px;">
		<div class="row-fluid">
			<div class="span8">
				<div class="well" style="box-shadow:0 0 3px #CCCCCC;background-color:#F0F5F8;margin-top:-20px;">
					<div>
						<div style="float:left;height:100px;"></div>
						<p class="pull-right"><a href="editEvent.jspx?id=${event.id}">编辑</a>|<a href="delEvent.jspx?id=${event.id}" onclick="return confirm('确定将该事件吗？')" style="text-decoration:none;"><img src="image/del.png"></a></p>
						<p style="font-size:18px;"><a href="chance.jspx">${chance.chancename}</a>的事件</p>
						<p><span class="badge">${employee.name}添加该事件</span></p>
					</div>
					
					
				</div>
				${event.des}
				<hr/>
				<div style="box-shadow:0 0 3px #CCCCCC;background-color:#fff;margin-top:-20px;">
					<div style="padding:20px">
						<form action="addeventdiscuss.jspx" method="post">
							<p><textarea name="des" id="" class="span7"></textarea></p>
							<p class="pull-right"><input type="submit" value="添加评论" class="btn btn-primary"/></p>
						</form>
					</div>
							<span>共有${eventDiscussList.size()}条评论</span>
							<table class="table">
								<c:forEach items="${eventDiscussList}" var="ed" >
									<tbody>
										<tr>
											<td><img src="image/ping.png" alt="" /></td>					
											<td>
												<p>${employee.name} 添加 于 ${ed.createtime}</p>
												<p>评论内容:${ed.des}</p>
											</td>									
											<td>
												<a href="deleventdiscuss.jspx?id=${ed.id}" onclick="return confirm('确定将该评论吗？')" style="text-decoration:none;"><img src="image/del.png"></a>
											</td>
										</tr>
									</tbody>
								</c:forEach>
							</table>
						
					</div>
					
				</div>	
			<div class="span4">
					<div style="background-color:#fff;border-radius:5px;padding:20px;font-size:18px;box-shadow:4px 5px 5px #252525;">
						<p>这个事件是关于</p>
						<hr/>
						<img src="image/mei.png"><a href="chance.jspx">${chance.chancename}</a>
						<hr />
					</div>
				</div>
			</div>
			</div>
			
	</body>
</html>
